package cn.wenhaha.common.bean.dto.mapper;

import cn.wenhaha.common.bean.vo.RolesVo;
import cn.wenhaha.common.bean.vo.UserVo;
import cn.wenhaha.common.db.bean.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * --------
 *
 * @author ：wyndem
 * @Date ：Created in 2022-03-26 18:54
 */
@Mapper
public interface UserVoMapper {

    UserVoMapper INSTANCE = Mappers.getMapper( UserVoMapper.class );

    @Mapping(source = "sysUser.userId", target = "id")
    UserVo toBeanSysUser(SysUser sysUser);
}
